/*
 * 接口方法
 * 王有锴
 */

window._API = {
	login: function (params, succCB, errCB) { // 登录
		mui.ajax({
			url: _URL.login,
			type: 'POST',
			dataType: 'json',
			timeout: _GLOBAL.timeOut,
			data: params,
			error: function(xhr, type, err) {
				_METHOD.dealAjaxErr(xhr, type, err, errCB);
			},
			success: function(res) {
				_METHOD.dealAjaxSucc(res, succCB);
			}
		});
	}
}
